/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.game.entity.shelves;

import com.thinkgem.jeesite.modules.hk.shop.entity.product.HkShopProduct;
import com.thinkgem.jeesite.modules.hk.shop.entity.shop.HkShopCoupon;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 游戏用户货架Entity
 * @author 李欣荣
 * @version 2018-10-11
 */
public class HkUserGameShelves extends DataEntity<HkUserGameShelves> {
	
	private static final long serialVersionUID = 1L;
	private HkShopProduct product;		// 商品
	private HkUser user;		// 用户
	private HkShopCoupon coupon;		// 券
	private String state;		// 状态
	private String rank;		// 序号
	private Date endDate;		// 结束时间
	
	public HkUserGameShelves() {
		super();
	}

	public HkUserGameShelves(String id){
		super(id);
	}

	public HkShopProduct getProduct() {
		return product;
	}

	public void setProduct(HkShopProduct product) {
		this.product = product;
	}
	
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	public HkShopCoupon getCoupon() {
		return coupon;
	}

	public void setCoupon(HkShopCoupon coupon) {
		this.coupon = coupon;
	}
	
	@Length(min=0, max=10, message="状态长度必须介于 0 和 10 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=10, message="序号长度必须介于 0 和 10 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
}